import request from '@/utils/request'

export const getButtnEventListApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/list',
    method: 'post',
    data: params
  })
}

export const addButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/add',
    method: 'post',
    data: params
  })
}

export const updateButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/edit',
    method: 'post',
    data: params
  })
}

export const deleteButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/delete',
    method: 'post',
    data: params
  })
}

export const uploadBatchButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/upload_batch',
    method: 'post',
    data: params
  })
}

export const previewBatchButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/batch_preview',
    method: 'post',
    data: params
  })
}

export const confirmBatchButtonEventApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/batch_submit',
    method: 'post',
    data: params
  })
}

export const getButtonEventDetailApi = (params) => {
  return request({
    url: '/admin-api/api/v2/event/detail',
    method: 'post',
    data: params
  })
}
